package com.linkoog.devtools.code_generator.setting.persistent.state;

import com.linkoog.devtools.code_generator.CodeGenConstants;
import com.linkoog.devtools.code_generator.database.domain.ConnectionInfo;
import com.linkoog.devtools.code_generator.database.domain.TypeMapping;
import com.linkoog.devtools.code_generator.template.model.node.TemplateNodeData;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class CodeGenDevToolsState {

    private List<ConnectionInfo> connectionInfoList;

    private List<TypeMapping> typeMappings;

    private List<TemplateNodeData> templateDataList;

    private List<String> commonColumnNameList;

    private Integer connNameIndex;

    public CodeGenDevToolsState(){
        this.connectionInfoList = new ArrayList<>();
        this.typeMappings = new ArrayList<>(CodeGenConstants.getDefaultTypeMappings());
        this.templateDataList = new ArrayList<>(CodeGenConstants.getDefaultTemplates());
        this.commonColumnNameList = new ArrayList<>(CodeGenConstants.getDefaultColumnNameList());
        this.connNameIndex = 0;
    }

}
